import http from '@/utils/request'

export function login(data = {}) {
  const url = '/Login/login'
  return http.post(url, data)
  // return http({ url, method: 'post', data, baseURL: '' })
}

export function getInfo(token) {
  const url = '/Index/getRole'
  return http.post(url, { token })
}

export function logout() {
  const url = '/Login/unlogin'
  return http.post(url)
}

export function getPassword(data) {
  const url = '/Login/changePass'
  return http.post(url, data)
}
